package com.georgekozlovsky.math;

import static org.junit.Assert.*;
import org.junit.Test;

public class FibonacciTest {

	@Test
	public void testCalculate() {
		Fibonacci f = new Fibonacci();

		long [] expecteds = {0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144};

		for (int i = 0; i < expecteds.length; i++) {
			assertEquals(expecteds[i], f.calculate(i + 1));
		}
	}

}
